package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

public interface OrderDetailMapper {

    /**
     * 用户下单, 插入商品信息
     * @param orderDetailList
     */
    void insert(List<OrderDetail> orderDetailList);


    /**
     * 根据订单id, 查询订单详细信息
     * @param orderId
     * @return
     */
    List<OrderDetail> selectOrderDetailsById(Long orderId);
}
